package com.woniuxy.provider;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

@SpringBootApplication(scanBasePackages = {"com.woniuxy", "commons.interceptor"}) // 扫描到拦截器所在的包，加入ioc容器
@EnableEurekaClient // 开启eureka客户端进行注册
@EnableCircuitBreaker // 开启熔断器
@EnableFeignClients(basePackages = "com.woniuxy.commons.service")
public class ProviderApplication {

  public static void main(String[] args) {
    SpringApplication.run(ProviderApplication.class, args);
  }
}
